package cn.iocoder.yudao.module.member.dal.dataobject.siteconfiguration;

import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

@TableName(value = "sys_link", autoResultMap = true)
@KeySequence("sys_link_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库，可不写。
@Data
@EqualsAndHashCode(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SysLinkDo extends BaseDO {

    /**
     * 用户ID
     */
    @TableId
    private Long id;
    @Schema(description = "对接token", requiredMode = Schema.RequiredMode.NOT_REQUIRED, example = "31457")
    private String token;

    /**
     * 是否自动调用
     */
    @Schema(description = "是否自动调用", requiredMode = Schema.RequiredMode.NOT_REQUIRED, example = "31457")
    private Boolean automaticFlag;

    @Schema(description = "主系统的域名", requiredMode = Schema.RequiredMode.NOT_REQUIRED, example = "31457")
    private String mainUrl;

    @Schema(description = "主站点名称", requiredMode = Schema.RequiredMode.NOT_REQUIRED, example = "31457")
    private String mainName;
    @Schema(description = "主站点编码", requiredMode = Schema.RequiredMode.NOT_REQUIRED, example = "31457")
    private String mainCode;

    private String siteCode;

}
